using System;
using System.ServiceModel;
using System.Runtime.Serialization;
using Metro.Admin.BusinessEntities;
using System.Collections.Generic; 

namespace Metro.CurrenciesService
{
    [ServiceContract(Namespace = "http://currecies.dataifx.com")]
    public interface ISharedService
    {
        [OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
        User UsersAuthentication(string login, string password);

        [OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
        Company GetCompanyParameters();

        [OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
        List<Order> GetOrdersFromUser(string idUser, DateTime date, string market);

        [OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
        List<Transaction> GetTransactionsFromUser(string idUser, DateTime date, string market);
    }
}
